package com.yizn.learn.concurrent;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yisl
 * @date 2021年03月22日 10:56 上午
 */
public class HeapOutOfMemoryTest {

    public static void main(String[] args) throws ClassNotFoundException {

//        List<Object> ll = new ArrayList<Object>();
//        for(long i=0; ;i++){
//            ll.add(new Object());
//            if(i%100000==0){
//                System.out.println(Thread.currentThread().getName()+"::"+i);
//            }
//        }
        ClassLoader loader = Thread.currentThread().getContextClassLoader();
        System.out.println(loader);
        System.out.println(loader.getParent());
        System.out.println(loader.getParent().getParent());
        loader.loadClass("com.yizn.learn.concurrent.test");
//        Class.forName("com.yizn.learn.concurrent.test");



    }
}
